package designpattern.single;
//单例模式(饿汉式)
public class Emperor {

    private static  final Emperor emperor= new Emperor();

    private Emperor(){

    }

    public static Emperor getEmperor(){

        return emperor;
    }
    public  static  void say(){

        System.out.println("众爱卿平身。。。。。。");
    }


}
